package com.ruoyi.project.system.customer.domain

import java.math.BigDecimal
import java.util.Date

import com.fasterxml.jackson.annotation.JsonFormat
import com.ruoyi.project.tool.{PageBean, PageBeanScala}
import lombok.Data
import org.springframework.format.annotation.DateTimeFormat

import scala.beans.BeanProperty

@Data
class Customer extends PageBeanScala with java.io.Serializable {

  val serialVersionUID = 1L
  /** id */
  @BeanProperty var id:String = _
  /** 客户编号 */
  @BeanProperty var customerNo:String = _

  /** 客户名称 */
  @BeanProperty var customerName:String = _

  /** 状态 0：停用 1：启用 */
  @BeanProperty var state:Integer = _

  /** 经度 */
  @BeanProperty var longitude:BigDecimal = _

  /** 纬度 */
  @BeanProperty var latitude:BigDecimal = _

  /** 说明 */
  @BeanProperty var note:String = _

  /** 创建者id */
  @BeanProperty var createId:String = _

  /** 更新者id */
  @BeanProperty var updateId:String = _

  /** 创建时间 */
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
  @BeanProperty var createTime: Date = _

  /** 修改时间 */
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
  @BeanProperty var updateTime: Date = _

  /*def getCreateTime: Date = createTime

  def setCreateTime(createTime: Date): Unit = {
    this.createTime = createTime
  }
  def getUpdateTime: Date = updateTime

  def setUpdateTime(updateTime: Date): Unit = {
    this.updateTime = updateTime
  }*/

  def this(customerNo: String, customerName: String, state: Integer, longitude: BigDecimal, latitude: BigDecimal, note: String, createId: String, updateId: String, createTime: Date, updateTime: Date)= {
    this()
    this.customerNo=customerNo
    this.customerName=customerName
    this.state=state
    this.longitude=longitude
    this.latitude=latitude
    this.note=note
    this.createId=createId
    this.updateId=updateId
    this.createTime=createTime
    this.updateTime=updateTime
  }

}
